﻿<%@ Page Title="" Language="C#" MasterPageFile="ReconSite.Master" AutoEventWireup="true" CodeBehind="CreditNoteEntry.aspx.cs" Inherits="Recon.Portal.WebUI.Modules.CreditNoteEntry" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleHolder" runat="server">
    <title>Invoice Credit Notes</title>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyHolder" runat="server">
    <div class="formDiv" style="width: 72%">
        <h2 class="formTitle">Credit Note</h2>
        <h1 class="formError" style="text-align: right; font-size: smaller; color: #CC2900;">Fields marked with * are mandatory</h1>
        <asp:Panel ID="pnlCreditNote" runat="server" Visible="true">
            <table cellspacing="1" cellpadding="1" border="0" width="100%">
                <tr>
                    <%--<td align="right" style="width: 18%">Customer Name : <%--<span class="required">*</span>--%>
                    <%--</td>
                    <td>
                        <asp:Label ID="lblCustomerName" runat="server" CssClass="lable" ForeColor="#ff8400" />
                    </td>--%>
                    <td align="right">Remitter Name :
                    </td>
                    <td align="left">
                                <asp:DropDownList ID="ddlRemitter" runat="server" DataTextField="RemitterName" DataValueField="RemitterID" />
                    </td>
                    <td align="right" style="width: 18%">Credit Note Number<span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCreditNoteNumber" runat="server" MaxLength="20"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="reqCreditNoteNumber" runat="server"
                            ErrorMessage="Enter Credit Note No." CssClass="formError"
                            ControlToValidate="txtCreditNoteNumber" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    
                    <td align="right">Credit Note Date<span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDate" runat="server" MaxLength="10" class="datepick" ></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="reqDate" runat="server"
                            ErrorMessage="Enter Date" CssClass="formError"
                            ControlToValidate="txtDate" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                     <td align="right">Expiry Date<span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtInvoiceDueDate" runat="server" MaxLength="10" class="datepick" ></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="reqExpiryDate" runat="server"
                            ErrorMessage="Enter Expiry Date" CssClass="formError"
                            ControlToValidate="txtInvoiceDueDate" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 18%; padding-bottom: 12px">Amount<span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtAmount" runat="server" MaxLength="15"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqAmount" runat="server"
                            ErrorMessage="Enter Amount" CssClass="formError"
                            ControlToValidate="txtAmount" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        &nbsp;<asp:RegularExpressionValidator ID="regAmount" runat="server"
                            ErrorMessage="Invalid Amount" CssClass="formError"
                            ControlToValidate="txtAmount" SetFocusOnError="True"
                            ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>
                    </td>
                    <td align="right" style="padding-bottom: 12px">Reference Invoice Number<span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtReferenceInvoiceNumber" runat="server" MaxLength="20"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqReferenceInvoiceNumber" runat="server"
                            ErrorMessage="Enter Ref# Invoice No." CssClass="formError"
                            ControlToValidate="txtReferenceInvoiceNumber" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="padding-bottom: 12px">Reason<span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtReason" runat="server" MaxLength="100"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqReason" runat="server"
                            ErrorMessage="Enter Reason" CssClass="formError"
                            ControlToValidate="txtReason" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">&nbsp;
                    </td>
                    <td colspan="3">
                        <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="Reset" CausesValidation="False" OnClick="btnCancel_Click" />
                    </td>
                </tr>
            </table>
        </asp:Panel>

        <asp:UpdatePanel ID="upUnmatchedLists" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div id="pnlMatchList" runat="server" class="pnlMatchList">
                    <span style="azimuth: center;">
                        <div id="Div1" class="formDiv" runat="server">
                            <center>
                                <asp:Label ID="lblMessage" runat="server" CssClass="lable" />
                            </center>
                        </div>
                    </span>
                    <div class="formDiv" style="width: 30%;">
                        <center>
                            <asp:Button ID="btnok" runat="server" Text="OK" OnClick="btnok_Click" CausesValidation="False" />
                        </center>
                    </div>
                </div>
                <div style="display: none">
                    <asp:Button ID="btnManualPopup" runat="server" />
                </div>
                <ajax:ModalPopupExtender ID="btnClickPopup" runat="server" PopupControlID="pnlMatchList"
                    TargetControlID="btnManualPopup" BackgroundCssClass="modalBackground" RepositionMode="RepositionOnWindowScroll" OkControlID="btnok">
                </ajax:ModalPopupExtender>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
